-- kill_robber
-- create by wangy
-- 附加属性：击杀强盗数量显示

return {
    apply = function(prop, baseValue)
        -- 数量
        return prop[3];
    end,

    desc = function(prop)
        local desc = getLocStr("kill_robber");
        local killNum = DungeonServiceM.queryDungeonAttrib("zooro_mask_kill2");
        local dungeonId = DungeonM.getDungeonId();
        if dungeonId == nil then
            dungeonId = ME.user.dbase:query("currentDungeon");
        end

        local classId = FormulaM.invoke("CALC_ZOORO_MONSTER_DEMAND", dungeonId);
        local name = MonsterM.query(classId, "name");

        desc = string.gsub(desc, "{0}", tonumber(killNum));
        desc = string.gsub(desc, "{1}", prop[3]);
        desc = string.format(desc, name);

        return desc;
    end,

    record = function(target, prop, path)
        return false;
    end
};
